package ywpt.service.config;


import java.util.List;

import org.hibernate.criterion.DetachedCriteria;

import ywpt.model.UsualQuestion;

public interface UsualQuestionService {

	public abstract  UsualQuestion getUsualQuestionById(Long id);

	public abstract int getUsualQuestionCountByCriteria(DetachedCriteria query);

	public abstract List<UsualQuestion> getUsualQuestions(
			DetachedCriteria query, int pageSize, int startIndex);

	public abstract String createUsualQuestionCode();

	public abstract void saveUsualQuestion(UsualQuestion usualQuestion);

	public abstract void updatUsualQuestion(UsualQuestion usualQuestion);

	public abstract void removeUsualQuestion(Long id);

	public abstract List<UsualQuestion> getUsualQuestions();
	
	public abstract List<UsualQuestion> getUsualQuestions(DetachedCriteria query);
	
	public abstract int getQuestionCountByTitle(String title);
	
	public abstract List<UsualQuestion> getQuestionByQuestionTitle(String title,int start,int size);
	
	public abstract String setUsualDetails(Long id);
}
